package org.jet.emall.prod.transfer;


import org.jet.emall.prod.dto.SpuImageDTO;
import org.jet.emall.prod.vo.SpuImageVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-15 11:27
 */
@Mapper
public interface SpuImageVoTransfer {

    SpuImageVoTransfer INSTANCE = Mappers.getMapper(SpuImageVoTransfer.class);


    /**
     *  将SPU图片DTO列表 转 VO列表
     * @param dtoList
     * @return
     */
    List<SpuImageVO> toVoList(List<SpuImageDTO> dtoList);

    /**
     *  将新增的SPU图片转DTO
     * @param spuImageVO
     * @return
     */
    SpuImageDTO toDto(SpuImageVO spuImageVO);
}
